import request from '@/utils/request'

// 查询砂石骨料矿山发货记录列表
export function listBonequarrydelivery(query) {
  return request({
    url: '/app/bonequarrydelivery/list',
    method: 'get',
    params: query
  })
}

// 查询砂石骨料矿山发货记录详细
export function getBonequarrydelivery(id) {
  return request({
    url: '/app/bonequarrydelivery/' + id,
    method: 'get'
  })
}

// 新增砂石骨料矿山发货记录
export function addBonequarrydelivery(data) {
  return request({
    url: '/app/bonequarrydelivery',
    method: 'post',
    data: data
  })
}

// 修改砂石骨料矿山发货记录
export function updateBonequarrydelivery(data) {
  return request({
    url: '/app/bonequarrydelivery',
    method: 'put',
    data: data
  })
}

// 删除砂石骨料矿山发货记录
export function delBonequarrydelivery(id) {
  return request({
    url: '/app/bonequarrydelivery/' + id,
    method: 'delete'
  })
}
// 砂石骨料类型
export function getAggregateList(params) {
    return request({
      url: '/app/aggregate/list',
      method: 'get',
      params
    })
  }
  
  // 砂石骨料新增
export function aggregateAdd(data) {
    return request({
      url: '/app/aggregate',
      method: 'post',
      data
    })
  }
  // 砂石骨料类型
  export function aggregateDel(data) {
    return request({
      url: `/app/aggregate/${data.id}`,
      method: 'delete',
      data
    })
  }
  